<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <ul class="ul-yhh">
        
    </ul>
</body>
<script src="../jquery-3.6.0.min.js"></script>
<script type="module">
    import {ajax} from "./02request.js"

    let $ulYhh = $(".ul-yhh");

    ajax($,"/stuHtml/01/05jquery/06ajax/yhh.json").then(res => {
        res.result_data.forEach(v => {
            let li = document.createElement("li");

            let img = document.createElement("img");
            img.src = v.image_path;

            let h4 = document.createElement("h4");
            h4.innerText = v.title;
            h4.classList.add("")

            let p = document.createElement("p");
            p.innerText = v.subtitle;

            li.appendChild(img);
            li.appendChild(h4);
            li.appendChild(p);

            $ulYhh.append(li);

        })
    })
</script>
</html>